Determines whether the ReadOnlyDictionary contains an element with the specified key.

Namespace:  Microsoft.Rtc.Collaboration.AudioVideo
Assembly:  Microsoft.Rtc.Collaboration(in Microsoft.Rtc.Collaboration.dll)

Syntax

Visual Basic (Declaration)
Public 
Function 
ContainsKey ( _
	
key 
As K _
) 
As 
Boolean
C#
public 
bool 
ContainsKey(
		K 
key
)
Visual C++
public:
virtual 
bool 
ContainsKey(
		K 
key
) 
sealed
JavaScript
function 
containsKey(
key);

Parameters

key
Type: K
The key to locate in the ReadOnlyDictionary.

Return Value

true if the ReadOnlyDictionary contains an element with the key; otherwise, false.

Implements

IDictionaryContainsKey(UTP)

Exceptions

Exception Condition
ArgumentNullException Thrown when key is null.

See Also